package main

import (
	"github.com/gin-gonic/gin"
	_ "github.com/go-sql-driver/mysql"
	"github.com/jmoiron/sqlx"
	"net/http"
)

func main()  {
	r:=gin.Default()
	r.GET("/", func(context *gin.Context) {
		context.JSON(200,gin.H{"status":200,"data":[]int{1,2,3}})
	})
	r.Run(":8600")
}

func run()  {
	http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
		w.Header().Add("Content-Type","application/json")
		w.WriteHeader(200)
		w.Write([]byte("{\"msg\":\"simple http test.\"}"))
	})
	http.ListenAndServe(":8600",nil)
}
